import request from '@/utils/request'

export function listHouseLease(query) {
  return request({
    url: '/system/houseLease/list',
    method: 'get',
    params: query
  })
}

export function getHouseLease(leaseId) {
  return request({
    url: `/system/houseLease/${leaseId}`,
    method: 'get'
  })
}

export function addHouseLease(data) {
  return request({
    url: '/system/houseLease',
    method: 'post',
    data
  })
}

export function updateHouseLease(data) {
  return request({
    url: '/system/houseLease',
    method: 'put',
    data
  })
}

export function delHouseLease(leaseIds) {
  return request({
    url: `/system/houseLease/${leaseIds}`,
    method: 'delete'
  })
}

export function fetchLeaseStatusOptions() {
  return request({
    url: '/system/houseLease/status/options',
    method: 'get'
  })
}
